
#define INTERNAL_CLK_FREQ  5529600
#define EXTERNAL_CLK_FREQ  18432000ul

#define SYS_CLK_FREQ  INTERNAL_CLK_FREQ

#define TIMER0_DELAY      100

#define ENABLE_TIMER      0x80                 
#define DISABLE_TIMER    ~0x80                 

void InitSystemClock(void);
void InitTimer(void);


void ResetTime(void);
void StartTimer(void);
void StopTimer(void);
unsigned int GetTime(void);


void DelayMilliseconds( unsigned int msToDelay );